﻿using System.Data.SqlClient;
using System.Windows.Forms;

namespace ModuloDeInventario
{
    public class Conexion
    {
        public string STR;

        public string Conexionbd()
        {
            try
            {
                return
                    STR = "Server=.\\SQLEXPRESS;Database=Contabilidad;Integrated Security=True;";
            }
            catch (SqlException ex)
            {
               return 
                   MessageBox.Show(ex.Message).ToString();
            }
        }
    }
}
